
// import  "./a.js"
// console.log(a);//a is not defined   a.js是一个模块  模块里面的数据不能直接得到



// 1、接收数据---------按需引入
// import { 接口数据名1,接口数据名2,接口数据名m,,,,,, }   from "模块地址"
// 接口的数据名，不用考虑顺序，但是必须和模块中的名称保持一直


// import {a ,num,obj,arr,fun  }   from "./a.js"


// import {b ,num,obj,arr,fun  }   from "./a.js"
// The requested module './a.js' does not provide an export named 'b'

// 根据需要去引入
// import {obj}   from "./a.js"



// 2、接收数据---------别名
// import { 接口数据名1 as 新名1,接口数据名m as 新名m,,, }   from "模块地址"

/* import {a as a1 ,num as num1,obj,arr,fun as fun1  }   from "./a.js"


// console.log(a,num,obj,arr,fun );//a is not defined  起了别名只后就只能使用别名了
console.log(a1,num1,obj,arr,fun1 );
export {
    a1
} */



import {a as a1 ,num as num1,obj1 as obj2,arr1 as arr2,fun as fun1  }   from "./a.js"

console.log(a1,num1,obj2,arr2,fun1 );
